package ch4;

public class Dog {
    String name;

    public Dog(String name) {
        this.name = name;
    }
    public void show(){
        System.out.println("这只狗叫"+name);
    }
}
